﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

/// <summary>
/// 警告
/// </summary>
[Index("wl_add_time", Name = "idxaddtime")]
[Index("wl_d_guid", Name = "idxdguid")]
[Index("wl_warn_status", Name = "wl_warn_status")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_warn_log
{
    [Key]
    public long wl_id { get; set; }

    [StringLength(50)]
    public string wl_guid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? wl_add_time { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [StringLength(255)]
    public string wl_remark { get; set; }

    /// <summary>
    /// 0非预警，1预警
    /// </summary>
    public int? wl_warn_status { get; set; }

    /// <summary>
    /// 设备ID
    /// </summary>
    [StringLength(50)]
    public string wl_d_guid { get; set; }

    /// <summary>
    /// 值 key
    /// </summary>
    [StringLength(50)]
    public string wl_key { get; set; }

    /// <summary>
    /// 值value
    /// </summary>
    [StringLength(50)]
    public string wl_value { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [StringLength(50)]
    public string wl_key_name { get; set; }
}
